//启动一个模块
var app = angular.module('student_manage');

app.config(function($httpProvider) {
	//设置请求头
    $httpProvider.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded; charset=UTF-8';
    //把请求内容从json转键值对
    $httpProvider.defaults.transformRequest = function(data) {
        if (data === undefined) {
            return data;
        }
        return $.param(data);
    };
    //全局设置通知的样式
    toastr.options = {
        "closeButton" : true,
        "progressBar" : true,
        "positionClass": "toast-top-right"
    }
});